<?php
/**
 * DB 연결정보
 * @author joo8111
 */
class DBEnvironments {
	
	var $hostname;
	var $user;
	var $password;
	var $db;
	
	/**
	 * Connection name에 따라 DB 연결정보를 설정한다.
	 * @param $connenction_name
	 */
	function DBEnvironments($connenction_name) {
		switch($connenction_name) {
			case "test":
				$this->hostname = "localhost";
				$this->user = "test";
				$this->password = "test";
				$this->db = "test";
				break;
			default:
				$this->hostname = "localhost";
				$this->user = "test";
				$this->password = "test";
				$this->db = "test";
				break;
		}
	}
}
?>